@import '~hzero-ui/lib/style/themes/default.less';
@import '~hzero-front/lib/index.less';

:global {
  .global-layout {
    .ant-row,
    .ant-form-item {
      .ant-form-item-label {
        text-align: left;
        white-space: pre-line;
        word-break: break-word;
        > label {
          display: inline-block;
          line-height: 20px;
          vertical-align: baseline;
          word-break: break-word;
          hyphens: manual;
        }
        .ant-form-item-required {
          margin-right: 4px;
          line-height: 20px;
          &::before {
            content: '' !important;
            margin-right: 0;
          }
        }
      }
      .ant-form-item-control-wrapper {
        .ant-form-item-required {
          .ant-form-item-children {
            display: flex;
            &::before {
              display: inline-block;
              content: '*';
              margin-right: 0;
              font-size: 12px;
              color: #f5222d;
              line-height: 28px;
              font-family: 'SimSun', sans-serif;
              position: absolute;
              z-index: 101;
              left: -8px;
            }
          }
        }
        .has-error {
          .ant-form-explain {
            margin: 3px auto;
          }
        }
      }
    }
  }
  // 覆盖菜单tooltip提示
  .layouts-components-default-menu-styles-menu-tooltip.ant-tooltip {
    display: none;
  }
  // 覆盖表格高度为35px
  div.c7n-pro-table-wrapper .c7n-pro-table table .c7n-pro-table-tbody > tr > td {
    padding-bottom: 2px !important;
    padding-top: 2px !important;
  }
  // 覆盖菜单图标样式
  .hzero-main-menu-item-content.layouts-components-default-menu-styles-main-menu-item-content,
  .ant-menu-submenu-inline .ant-menu-submenu-title,
  .hzero-side-layout-menu-main-content,
  .hzero-common-layout-menu-main-content {
    i {
      font-size: 13px !important;
    }
  }
}
